<div class="bg_greenyellow round_10 quarter shadow_in_0">
    <ul class="rightmenu">
        <li><a href="<?php echo $this->url(array('action'=>'index','controller'=>'network','module'=>'admin'),null,true); ?>">Sieć</a></li>
        <li><a href="<?php echo $this->url(array('action'=>'nodes','controller'=>'network','module'=>'admin'),null,true); ?>">Lokalizacje</a></li>
        <li><a href="<?php echo $this->url(array('action'=>'arcs','controller'=>'network','module'=>'admin'),null,true); ?>">Połączenia</a></li>
    </ul>    
</div>
    
    
<div class="threequarter vpad_10 last fixed">
    <?php   ;?>
    <h6 class ="bg_mediumblue round_5 shadow_out_4">Lista węzłów</h6>    
    <?php if(empty($this->nodes)){ ?>
    
    <div class="warning"> <p>Brak węzłów !</p><div</div></div>
    
    <?php } else { ?>
<table class="plain" width="100%">
   <caption>
       Lokalizacje
   </caption>
   <thead>
      <tr>
         <th>&nbsp;</th>
         <th scope="col">Nazwa</th>
         <th scope="col"></th>
         <th scope="col"></th>
      </tr>
   </thead>
   <tfoot>
      <tr>
         <th>&nbsp;</th>
         <th>&nbsp;</th>
         <td>&nbsp;</td>
         <td>&nbsp;</td>
      </tr>
   </tfoot>
   <tbody>
       <?php foreach ($this->nodes as $node) { ?>
     
      <tr>
         <th scope="row"><?php echo $node->getNetworkNode_id(); ?></th>
         <td>
         <a href='<?php echo $this->url(array('action'=>'arcs','controller'=>'network','module'=>'admin','node'=>$node->getNetworkNode_id()),null,true); ?>'>    
         <?php echo $node->getName();?>
         </a>  

         </td>
         <td><a class="edit_button grey styled_button" href='<?php echo $this->url(array('action'=>'edit-node','controller'=>'network','module'=>'admin','id'=>$node->getNetworkNode_id()),null,true); ?>'>Edytuj</a></td>
         <td><a class="delete_button grey styled_button" href='<?php echo $this->url(array('action'=>'delete-node','controller'=>'network','module'=>'admin','id'=>$node->getNetworkNode_id()),null,true); ?>'>Kasuj</a></td>
      </tr> 
      <?php }?>
    
   </tbody>
</table>
    <?php } ?>
    <hr />  
        <?php echo $this->paginationControl($this->nodes,
                                    'Sliding',
                                    'utility/my_paginator_helper.phtml'); ?>
    <br />
    <h6 class ="bg_mediumblue round_5 shadow_out_4">Nowa lokalizacja</h6>
    <?php echo $this->form;?>   
</div>    